<template>
    <div v-show="show" id="xclloading" class="xcl_loading">
        <div class="xcl_loading_inner">
            <i class="xcl_loading_icon"></i>{{showTxt || '正在努力加载中...'}}
        </div>
    </div>
</template>
<script>
    export default {
        replace:true,
        props: ['showTxt',"show"]
    }
</script>
<style lang="stylus">
    .xcl_loading {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 9999;
        .xcl_loading_inner {
            text-align: center;
            color: #ccc;
            position: fixed;
            top: 50%;
            left: 50%;
            margin-left: -70px;
            margin-top: -48px;
            width: 150px;
            border-radius: 6px;
            font-size: .6em;
            padding: 58px 0 10px 0;
            .xcl_loading_icon {
                position: absolute;
                top: 30px;
                left: 50%;
                background-image:url(/src/asserts/images/loading.gif);
                background-size:100%;
                margin-left: -16px;
                width: 24px;
                height: 24px;
            }
        }
    }
</style>